﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	xmlns:local="clr-namespace:Chess"
	x:Class="Chess.GameClock"
	x:Name="UserControl"
	d:DesignWidth="640" d:DesignHeight="480" Width="450" Height="800">

	<Grid x:Name="LayoutRoot">
		<Grid.Background>
			<ImageBrush ImageSource="..\images\ClockFrame.png" />
		</Grid.Background>
		<Grid.RowDefinitions>
			<RowDefinition Height="50" MaxHeight="50" MinHeight="50"/>
			<RowDefinition Height="700" MaxHeight="700" MinHeight="700"/>
			<RowDefinition Height="50" MaxHeight="50" MinHeight="50"/>
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition MaxWidth="50" MinWidth="50" Width="50"/>
			<ColumnDefinition MaxWidth="350" MinWidth="350" Width="350"/>
			<ColumnDefinition MaxWidth="50" MinWidth="50" Width="50"/>
		</Grid.ColumnDefinitions>
		<Grid Grid.Column="1" Grid.Row="1">
			<Grid.RowDefinitions>
				<RowDefinition Height="50" MaxHeight="50" MinHeight="50"/>
				<RowDefinition Height="250" MaxHeight="250" MinHeight="250"/>
				<RowDefinition/>
				<RowDefinition Height="50"/>
				<RowDefinition Height="250" MaxHeight="250" MinHeight="250"/>
				<RowDefinition Height="50" MaxHeight="50" MinHeight="50"/>
			</Grid.RowDefinitions>
			<Grid.ColumnDefinitions>
				<ColumnDefinition MaxWidth="50" MinWidth="50" Width="50"/>
				<ColumnDefinition/>
				<ColumnDefinition MaxWidth="50" MinWidth="50" Width="50"/>
			</Grid.ColumnDefinitions>
			<local:MoveCounter x:Name="moveCounter2" Margin="-30,-30,8,8" Grid.Column="2" Grid.Row="2"/>
			<local:ClockFace x:Name="clock2" Width="250" Grid.Column="1" Grid.Row="1"/>
			<Ellipse Stroke="Black" StrokeThickness="3" Grid.Column="1" Grid.Row="1">
				<Ellipse.Effect>
					<BlurEffect/>
				</Ellipse.Effect>
			</Ellipse>
			<local:ClockFace x:Name="clock1" Width="250" Grid.Column="1" Grid.Row="4" d:LayoutOverrides="GridBox, VerticalMargin"/>
			<Ellipse Stroke="Black" StrokeThickness="3" Grid.Column="1" Grid.Row="4">
				<Ellipse.Effect>
					<BlurEffect/>
				</Ellipse.Effect>
			</Ellipse>
			<Rectangle x:Name="flag1" Fill="{StaticResource RedFlagUp}" Grid.Row="3" Grid.Column="2" VerticalAlignment="Bottom" Height="50" Margin="-8,0,8,-8"/>
			<Rectangle x:Name="flag2" Fill="{StaticResource RedFlagDown}" Grid.Column="2" Margin="-8,8,8,-8"/>
			<local:Led x:Name="led2" Margin="8,8,-8,-8"/>
			<local:Led x:Name="led1" VerticalAlignment="Bottom" Grid.Row="3" d:LayoutOverrides="Height" Margin="8,0,-8,-8"/>
			<TextBlock Margin="0" Text="Black" TextWrapping="Wrap" d:LayoutOverrides="Height" HorizontalAlignment="Center" Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" FontFamily="{DynamicResource MV Boli font}" FontSize="34.667" FontWeight="Bold">
					<TextBlock.Foreground>
						<ImageBrush ImageSource="{DynamicResource Letter Background}" Stretch="UniformToFill" />
					</TextBlock.Foreground>
			</TextBlock>
			<TextBlock Margin="0" Text="White" TextWrapping="Wrap" d:LayoutOverrides="Height" HorizontalAlignment="Center" Grid.Column="1" Grid.Row="5" VerticalAlignment="Center" FontFamily="{DynamicResource MV Boli font}" FontSize="34.667" FontWeight="Bold">
					<TextBlock.Foreground>
						<ImageBrush ImageSource="{DynamicResource Letter Background}" Stretch="UniformToFill" />
					</TextBlock.Foreground>
			</TextBlock>
			<local:MoveCounter x:Name="moveCounter1" Margin="-30,-30,8,8" Grid.Column="2" Grid.Row="5"/>
		</Grid>
	</Grid>
</UserControl>